using GeneticAlgorithms;
using WeifenLuo.WinFormsUI.Docking;

namespace GADemo
{
    public partial class PropertiesForm : DockContent
    {
        public PropertiesForm()
        {
            InitializeComponent();
        }

        internal void SetGA(IGeneticAlgorithm ga)
        {
            propertyGrid1.SelectedObject = ga.Configuration;
        }

        public bool ReadOnly
        {
            get
            {
                return propertyGrid1.Enabled;
            }
            set
            {
                propertyGrid1.Enabled = value;
            }
        }
    }
}

